#ifndef PROGRESSDELEGATE_H
#define PROGRESSDELEGATE_H

#include <QItemDelegate>

class ProgressDelegate : public QItemDelegate
{
public:
    ProgressDelegate(QObject *parent=0);
    ~ProgressDelegate();
    QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
                          const QModelIndex &index) const;

    void setEditorData(QWidget *editor, const QModelIndex &index) const;
    void setModelData(QWidget *editor, QAbstractItemModel *model,
                      const QModelIndex &index) const;

    void updateEditorGeometry(QWidget *editor,
    const QStyleOptionViewItem &option, const QModelIndex &index) const;
};

#endif // PROGRESSDELEGATE_H
